/*
	Copyright (C) 2014 Salil Bhagurkar

	This file is part of illusion

	illusion is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as
	published by the Free Software Foundation, either version 3 of
	the License, or (at your option) any later version.

	illusion is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with illusion.
	If not, see <http://www.gnu.org/licenses/>.
*/

#define SYS_G_INIT 33						//Initialize graphics
#define SYS_G_DEINIT 34						//Deinitialize graphics
#define SYS_G_FLUSH 39						//Flush the graphics structure

	case SYS_G_INIT:
	{
		uint x = param0;
		uint y = param1;
		return g_initialize(x, y);
	}
	case SYS_G_DEINIT:
	{
		return g_deinitialize();
	}
	case SYS_G_FLUSH:
	{
		return g_flush();
	}
